package com.lijin.service

import com.lijin.dao.UserMapper
import com.lijin.entity.UserInfo
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.stereotype.Service

/**
 * Created by gold-jx on 2017/11/21.
 */
@Service
class UserServiceImpl :IUserService{

    @Autowired
    lateinit var userMapper: UserMapper

    override fun queryUserInfo(userInfo: UserInfo): List<UserInfo> {
        return userMapper.queryUserList(userInfo);
    }

    override fun insertUser(userInfo: UserInfo): Int {
        return userMapper.insertUser(userInfo);
    }
}